<template>
  <el-form :model="form3" label-width="auto" style="max-width: 1300px;min-width: 1300px">
    <div class="common-layout">
      <el-container>
        <el-main>
          <!--标题-->
          <el-row>
            <el-col :span="24">
              <div class="grid-content ep-bg-purple-dark"/>
              <h1 style="font-size: 40px" class="the_font_is_bold">
                JGH-1000D/1400A/1800B干泵维修清洗修研报告
              </h1>
            </el-col>
          </el-row>
          <!--Case-->
          <el-row>
            <el-col :span="2" style="padding-left: 10px;">
              <div class="grid-content ep-bg-purple"/>
              <span class="fontSize the_font_is_bold">Case</span>
            </el-col>
            <el-col :span="22">
              <el-input
                  v-model="form3.input_Case"
                  style="width: 100%;height: 24px"
                  disabled
                  placeholder="请输入"
                  clearable
              />
            </el-col>
          </el-row>
          <!--清洗修研检查-->
          <el-row>
            <el-col :span="2" style="padding-left: 10px;">
              <div class="grid-content ep-bg-purple"/>
              <div
                  style="height:275px;display: flex;align-items: center; /* 垂直居中 */justify-content: center; /* 水平居中 */">
                <span class="text_is_vertical fontSize the_font_is_bold" >
                  清&nbsp;洗&nbsp;修&nbsp;研&nbsp;检&nbsp;查
                </span>
              </div>
            </el-col>
            <el-col :span="22">
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span class="the_font_is_bold">部件名称</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span class="the_font_is_bold">检查重点</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span class="the_font_is_bold">上泵</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span class="the_font_is_bold">下泵</span>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>电机腔</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否经超声波洗净无油污、粉尘</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--电机腔-是否经超声波洗净无油污、粉尘-上泵-->
                    <el-radio-group v-model="form3.radio_Motor_cavity_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Motor_cavity_Pump_up_value"
                        style="width: 150px;height: 20px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--电机腔-是否经超声波洗净无油污、粉尘-下泵-->
                    <el-radio-group v-model="form3.radio_Motor_cavity_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Motor_cavity_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>齿轮箱</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否经超声波洗净无油污、粉尘</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--齿轮箱-是否经超声波洗净无油污、粉尘-上泵-->
                    <el-radio-group v-model="form3.radio_Gearbox_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Gearbox_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--齿轮箱-是否经超声波洗净无油污、粉尘-下泵-->
                    <el-radio-group v-model="form3.radio_Gearbox_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Gearbox_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>腔体</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否经超声波洗净无油污、粉尘</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--腔体-是否经超声波洗净无油污、粉尘-上泵-->
                    <el-radio-group v-model="form3.radio_Cavity_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Cavity_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--腔体-是否经超声波洗净无油污、粉尘-下泵-->
                    <el-radio-group v-model="form3.radio_Cavity_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Cavity_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>转子</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否经超声波洗净无油污、粉尘</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--转子-是否经超声波洗净无油污、粉尘-上泵-->
                    <el-radio-group v-model="form3.radio_Rotor_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Rotor_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--转子-是否经超声波洗净无油污、粉尘-下泵-->
                    <el-radio-group v-model="form3.radio_Rotor_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Rotor_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>泵轴</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否经超声波洗净无油污、粉尘</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--泵轴-是否经超声波洗净无油污、粉尘-上泵-->
                    <el-radio-group v-model="form3.radio_Pump_shaft_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Pump_shaft_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--泵轴-是否经超声波洗净无油污、粉尘-下泵-->
                    <el-radio-group v-model="form3.radio_Pump_shaft_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Pump_shaft_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>联接件</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否经超声波洗净、擦拭至无油污</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--联接件-是否经超声波洗净、擦拭至无油污-上泵-->
                    <el-radio-group v-model="form3.radio_Couplings_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Couplings_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--联接件-是否经超声波洗净、擦拭至无油污-下泵-->
                    <el-radio-group v-model="form3.radio_Couplings_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Couplings_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>电机水路</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否用增压泵冲洗畅通至无堵塞</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--电机水路-是否用增压泵冲洗畅通至无堵塞-上泵-->
                    <el-radio-group v-model="form3.radio_Motor_waterway_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Motor_waterway_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--电机水路-是否用增压泵冲洗畅通至无堵塞-下泵-->
                    <el-radio-group v-model="form3.radio_Motor_waterway_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Motor_waterway_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>气路</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <span>是否清洗无油无堵塞</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--气路-是否清洗无油无堵塞-上泵-->
                    <el-radio-group v-model="form3.radio_Gas_path_Pump_up">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Gas_path_Pump_up_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4">
                    <!--气路-是否清洗无油无堵塞-下泵-->
                    <el-radio-group v-model="form3.radio_Gas_path_Pump_down">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Gas_path_Pump_down_value"
                        style="width: 150px;height: 22px;margin-left: 20px"
                        placeholder="备注"
                        clearable
                    />
                  </div>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="3">
                  <div class="grid-content ep-bg-purple"/>
                  <span>损坏部位及全部零件拍照</span>
                </el-col>
                <el-col :span="7">
                  <div class="grid-content ep-bg-purple"/>
                  <div class="mb-2 ml-4" style="height:50px;display: flex;align-items: center; /* 垂直居中 */justify-content: center; /* 水平居中 */">
                    <!--损坏部位及全部零件拍照-->
                    <el-radio-group v-model="form3.radio_Take_photos_of_the_damaged_parts_and_all_parts">
                      <el-radio value="是" size="large" class="smallOptions"><span style="font-size: 15px;">是</span>
                      </el-radio>
                      <el-radio value="否" size="large" class="smallOptions"><span style="font-size: 15px;">否</span>
                      </el-radio>
                    </el-radio-group>
                    <el-input
                        v-model="form3.radio_Take_photos_of_the_damaged_parts_and_all_parts_value"
                        style="width: 70px;height: 22px;margin-left: 20px;"
                        clearable
                    />
                    <span>张</span>
                  </div>
                </el-col>
                <el-col :span="7" class="text_is_on_the_left">
                  <div class="grid-content ep-bg-purple"/>
                  <div>
                    <span>维修人:</span>
                    <el-input
                        v-model="form3.input_Repairers_Pump_up"
                        style="width: 251px;height: 22px"
                        clearable
                    />
                  </div>
                  <div>
                    <span>完成日期:</span>
<!--                    <el-input
                        v-model="form3.input_Completion_date_Pump_up"
                        style="width: 235px;height: 22px"
                        clearable
                    />-->
                    <el-date-picker
                        v-model="form3.input_Completion_date_Pump_up"
                        value-format="YYYY-MM-DD"
                        style="width: 235px;height: 22px"
                        type="date"
                        placeholder="选择时间"
                    />
                  </div>
                </el-col>
                <el-col :span="7" class="text_is_on_the_left">
                  <div class="grid-content ep-bg-purple"/>
                  <div>
                    <span>维修人:</span>
                    <el-input
                        v-model="form3.input_Repairers_Pump_down"
                        style="width: 251px;height: 22px"
                        clearable
                    />
                  </div>
                  <div>
                    <span>完成日期:</span>
<!--                    <el-input
                        v-model="form3.input_Completion_date_Pump_down"
                        style="width: 235px;height: 22px"
                        clearable
                    />-->
                    <el-date-picker
                        v-model="form3.input_Completion_date_Pump_down"
                        value-format="YYYY-MM-DD"
                        style="width: 235px;height: 22px"
                        type="date"
                        placeholder="选择时间"
                    />
                  </div>
                </el-col>
              </el-row>
            </el-col>
          </el-row>
          <!--备注-->
          <el-row>
            <el-col :span="2">
              <div class="grid-content ep-bg-purple"/>
              <span class="fontSize the_font_is_bold">备&nbsp;注</span>
            </el-col>
            <el-col :span="22">
              <div class="grid-content ep-bg-purple"/>
              <el-input
                  v-model="form3.input_Remarks"
                  style="width: 100%;"
                  placeholder="备注"
                  clearable
              />
            </el-col>
          </el-row>
        </el-main>
      </el-container>
      <el-button type="success" plain @click="submit3()">提交</el-button>
    </div>
  </el-form>
</template>

<script setup lang="ts">
import {defineProps, reactive, watch} from 'vue'
import axios from "axios";
import {ElMessage} from "element-plus";
const props = defineProps({
  CaseValue: {
    type: String,
    default: ''
  }
});
//表头
const formHead = reactive({
  work_order : '',
  material_No : '',
  name : '',
  pump_Unit_Number : '',
  case : '',
  customer : '',
  spawn_time : '',
  production_quantity : '',
  number_of_downlines : '',
  state : '',
  start_time : '',
  end_time : '',
  production_processes_1 : false,
  production_processes_2 : false,
  production_processes_3 : false,
  production_processes_4 : false,
  production_processes_5 : false,
  production_processes_6 : false,
  production_processes_7 : false,
  production_processes_8 : false,
  production_processes_9 : false,
  production_processes_10 : false,
  urgent : false,
});
watch(() => props.CaseValue, (newVal) => {
  if(newVal != null && newVal !== ""){
    resetFormData(newVal)
  }
});
function resetFormData(newVal){
  axios.get('http://192.168.110.84:8081/staff/gongxuData/byCase/' + newVal)
      .then(response => {
        // 请求成功后的处理
        const data = response.data.data;
        if (response.data.code === 1) {
          if(data !== null){
            // 遍历data对象并更新form
            console.log(data)
            Object.keys(data).forEach(key => {
              formHead[key] = data[key];
            })
            form3.input_Case = formHead.case
          }else {
            resetForm();
          }
        } else {
          ElMessage.error(response.data.message)
        }
      });
}
function resetForm(){
  formHead.work_order = '';
  formHead.material_No = '';
  formHead.name = '';
  formHead.pump_Unit_Number = '';
  formHead.case = '';
  formHead.customer = '';
  formHead.spawn_time = '';
  formHead.production_quantity = '';
  formHead.number_of_downlines = '';
  formHead.state = '';
  formHead.start_time = '';
  formHead.end_time = '';
  formHead.production_processes_1 = false;
  formHead.production_processes_2 = false;
  formHead.production_processes_3 = false;
  formHead.production_processes_4 = false;
  formHead.production_processes_5 = false;
  formHead.production_processes_6 = false;
  formHead.production_processes_7 = false;
  formHead.production_processes_8 = false;
  formHead.production_processes_9 = false;
  formHead.production_processes_10 = false;
  formHead.urgent = false
}
const form3 = reactive({
  input_Case : '',/*Case*/

  radio_Motor_cavity_Pump_up : '',/*电机腔-是否经超声波洗净无油污、粉尘-上泵*/
  radio_Motor_cavity_Pump_up_value : '',/*电机腔-是否经超声波洗净无油污、粉尘-上泵-备注*/
  radio_Motor_cavity_Pump_down : '',/*电机腔-是否经超声波洗净无油污、粉尘-下泵*/
  radio_Motor_cavity_Pump_down_value : '',/*电机腔-是否经超声波洗净无油污、粉尘-下泵-备注*/

  radio_Gearbox_Pump_up : '',/*齿轮箱-是否经超声波洗净无油污、粉尘-上泵*/
  radio_Gearbox_Pump_up_value : '',/*齿轮箱-是否经超声波洗净无油污、粉尘-上泵-备注*/
  radio_Gearbox_Pump_down : '',/*齿轮箱-是否经超声波洗净无油污、粉尘-下泵*/
  radio_Gearbox_Pump_down_value : '',/*齿轮箱-是否经超声波洗净无油污、粉尘-下泵-备注*/

  radio_Cavity_Pump_up : '',/*腔体-是否经超声波洗净无油污、粉尘-上泵*/
  radio_Cavity_Pump_up_value : '',/*腔体-是否经超声波洗净无油污、粉尘-上泵-备注*/
  radio_Cavity_Pump_down : '',/*腔体-是否经超声波洗净无油污、粉尘-下泵*/
  radio_Cavity_Pump_down_value : '',/*腔体-是否经超声波洗净无油污、粉尘-下泵-备注*/

  radio_Rotor_Pump_up : '',/*转子-是否经超声波洗净无油污、粉尘-上泵*/
  radio_Rotor_Pump_up_value : '',/*转子-是否经超声波洗净无油污、粉尘-上泵-备注*/
  radio_Rotor_Pump_down : '',/*转子-是否经超声波洗净无油污、粉尘-下泵*/
  radio_Rotor_Pump_down_value : '',/*转子-是否经超声波洗净无油污、粉尘-下泵-备注*/

  radio_Pump_shaft_Pump_up : '',/*泵轴-是否经超声波洗净无油污、粉尘-上泵*/
  radio_Pump_shaft_Pump_up_value : '',/*泵轴-是否经超声波洗净无油污、粉尘-上泵-备注*/
  radio_Pump_shaft_Pump_down : '',/*泵轴-是否经超声波洗净无油污、粉尘-下泵*/
  radio_Pump_shaft_Pump_down_value : '',/*泵轴-是否经超声波洗净无油污、粉尘-下泵-备注*/

  radio_Couplings_Pump_up : '',/*联接件-是否经超声波洗净、擦拭至无油污-上泵*/
  radio_Couplings_Pump_up_value : '',/*联接件-是否经超声波洗净、擦拭至无油污-上泵-备注*/
  radio_Couplings_Pump_down : '',/*联接件-是否经超声波洗净、擦拭至无油污-下泵*/
  radio_Couplings_Pump_down_value : '',/*联接件-是否经超声波洗净、擦拭至无油污-下泵-备注*/

  radio_Motor_waterway_Pump_up : '',/*电机水路-是否用增压泵冲洗畅通至无堵塞-上泵*/
  radio_Motor_waterway_Pump_up_value : '',/*电机水路-是否用增压泵冲洗畅通至无堵塞-上泵-备注*/
  radio_Motor_waterway_Pump_down : '',/*电机水路-是否用增压泵冲洗畅通至无堵塞-下泵*/
  radio_Motor_waterway_Pump_down_value : '',/*电机水路-是否用增压泵冲洗畅通至无堵塞-下泵-备注*/

  radio_Gas_path_Pump_up : '',/*气路-是否清洗无油无堵塞-上泵*/
  radio_Gas_path_Pump_up_value : '',/*气路-是否清洗无油无堵塞-上泵-备注*/
  radio_Gas_path_Pump_down : '',/*气路-是否清洗无油无堵塞-下泵*/
  radio_Gas_path_Pump_down_value : '',/*气路-是否清洗无油无堵塞-下泵-备注*/

  radio_Take_photos_of_the_damaged_parts_and_all_parts : '',/*损坏部位及全部零件拍照*/
  radio_Take_photos_of_the_damaged_parts_and_all_parts_value : '',/*损坏部位及全部零件拍照 - 拍了多少张*/

  input_Repairers_Pump_up : '',/*上泵 - 维修人*/
  input_Completion_date_Pump_up : '',/*上泵 - 完成日期*/

  input_Repairers_Pump_down : '',/*下泵 - 维修人*/
  input_Completion_date_Pump_down : '',/*上泵 - 完成日期*/

  input_Remarks : '',/*备注*/
})

const submit3 = function () {
  axios.post('http://192.168.110.84:8081/part3/add', form3)
      .then(response => {
        // 请求成功后的处理
        console.log(response.data);
        if (response.data.code === 1) {
          ElMessage({
            message: response.data.data,
            type: 'success',
          })
          resetForm3()
          TFValueReturn();
        }else {
          ElMessage.error(response.data.message)
        }
      });
}
function resetForm3() {
  form3.input_Case = ''; /* Case */

  form3.radio_Motor_cavity_Pump_up = ''; /* 电机腔-是否经超声波洗净无油污、粉尘-上泵 */
  form3.radio_Motor_cavity_Pump_up_value = ''; /* 电机腔-是否经超声波洗净无油污、粉尘-上泵-备注 */
  form3.radio_Motor_cavity_Pump_down = ''; /* 电机腔-是否经超声波洗净无油污、粉尘-下泵 */
  form3.radio_Motor_cavity_Pump_down_value = ''; /* 电机腔-是否经超声波洗净无油污、粉尘-下泵-备注 */

  form3.radio_Gearbox_Pump_up = ''; /* 齿轮箱-是否经超声波洗净无油污、粉尘-上泵 */
  form3.radio_Gearbox_Pump_up_value = ''; /* 齿轮箱-是否经超声波洗净无油污、粉尘-上泵-备注 */
  form3.radio_Gearbox_Pump_down = ''; /* 齿轮箱-是否经超声波洗净无油污、粉尘-下泵 */
  form3.radio_Gearbox_Pump_down_value = ''; /* 齿轮箱-是否经超声波洗净无油污、粉尘-下泵-备注 */

  form3.radio_Cavity_Pump_up = ''; /* 腔体-是否经超声波洗净无油污、粉尘-上泵 */
  form3.radio_Cavity_Pump_up_value = ''; /* 腔体-是否经超声波洗净无油污、粉尘-上泵-备注 */
  form3.radio_Cavity_Pump_down = ''; /* 腔体-是否经超声波洗净无油污、粉尘-下泵 */
  form3.radio_Cavity_Pump_down_value = ''; /* 腔体-是否经超声波洗净无油污、粉尘-下泵-备注 */

  form3.radio_Rotor_Pump_up = ''; /* 转子-是否经超声波洗净无油污、粉尘-上泵 */
  form3.radio_Rotor_Pump_up_value = ''; /* 转子-是否经超声波洗净无油污、粉尘-上泵-备注 */
  form3.radio_Rotor_Pump_down = ''; /* 转子-是否经超声波洗净无油污、粉尘-下泵 */
  form3.radio_Rotor_Pump_down_value = ''; /* 转子-是否经超声波洗净无油污、粉尘-下泵-备注 */

  form3.radio_Pump_shaft_Pump_up = ''; /* 泵轴-是否经超声波洗净无油污、粉尘-上泵 */
  form3.radio_Pump_shaft_Pump_up_value = ''; /* 泵轴-是否经超声波洗净无油污、粉尘-上泵-备注 */
  form3.radio_Pump_shaft_Pump_down = ''; /* 泵轴-是否经超声波洗净无油污、粉尘-下泵 */
  form3.radio_Pump_shaft_Pump_down_value = ''; /* 泵轴-是否经超声波洗净无油污、粉尘-下泵-备注 */

  form3.radio_Couplings_Pump_up = ''; /* 联接件-是否经超声波洗净、擦拭至无油污-上泵 */
  form3.radio_Couplings_Pump_up_value = ''; /* 联接件-是否经超声波洗净、擦拭至无油污-上泵-备注 */
  form3.radio_Couplings_Pump_down = ''; /* 联接件-是否经超声波洗净、擦拭至无油污-下泵 */
  form3.radio_Couplings_Pump_down_value = ''; /* 联接件-是否经超声波洗净、擦拭至无油污-下泵-备注 */

  form3.radio_Motor_waterway_Pump_up = ''; /* 电机水路-是否用增压泵冲洗畅通至无堵塞-上泵 */
  form3.radio_Motor_waterway_Pump_up_value = ''; /* 电机水路-是否用增压泵冲洗畅通至无堵塞-上泵-备注 */
  form3.radio_Motor_waterway_Pump_down = ''; /* 电机水路-是否用增压泵冲洗畅通至无堵塞-下泵 */
  form3.radio_Motor_waterway_Pump_down_value = ''; /* 电机水路-是否用增压泵冲洗畅通至无堵塞-下泵-备注 */

  form3.radio_Gas_path_Pump_up = ''; /* 气路-是否清洗无油无堵塞-上泵 */
  form3.radio_Gas_path_Pump_up_value = ''; /* 气路-是否清洗无油无堵塞-上泵-备注 */
  form3.radio_Gas_path_Pump_down = ''; /* 气路-是否清洗无油无堵塞-下泵 */
  form3.radio_Gas_path_Pump_down_value = ''; /* 气路-是否清洗无油无堵塞-下泵-备注 */

  form3.radio_Take_photos_of_the_damaged_parts_and_all_parts = ''; /* 损坏部位及全部零件拍照 */
  form3.radio_Take_photos_of_the_damaged_parts_and_all_parts_value = ''; /* 损坏部位及全部零件拍照 - 拍了多少张 */

  form3.input_Repairers_Pump_up = ''; /* 上泵 - 维修人 */
  form3.input_Completion_date_Pump_up = ''; /* 上泵 - 完成日期 */

  form3.input_Repairers_Pump_down = ''; /* 下泵 - 维修人 */
  form3.input_Completion_date_Pump_down = ''; /* 下泵 - 完成日期 */

  form3.input_Remarks = ''; /* 备注 */
}

/*调用父方法*/
import { inject } from 'vue';
const TFValueReturn = inject('TFValueReturn');
</script>

<style scoped>
.el-col {
  border: black 1px solid;
}

.text_is_vertical {
  writing-mode: vertical-lr; /* 从上到下竖直排列文字 */
  text-orientation: mixed; /* 保持字符的原始方向 */
}

.fontSize {
  font-size: 20px;
}

.smallOptions {
  height: 20px;
}

.text_is_on_the_left {
  text-align: left;
}
.the_font_is_bold {
  font-weight: bold;
}
</style>